﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BlogApi.Models
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class User:BaseEntity
    {
        /// <summary>
        /// 用户的邮箱
        /// </summary>
        [Required,Column(TypeName ="varchar")]
        public string Email { get; set; }
        /// <summary>
        /// 用户的密码
        /// </summary>
        [Required,Column(TypeName ="varchar")]
        public string Password { get; set; }
        /// <summary>
        /// 用户的昵称
        /// </summary>
        public string NickName { get; set; } = "这个人还没取名字";
        /// <summary>
        /// 用户的头像的url
        /// </summary>
        public string UserImageUrl { get; set; } = "https://hatsune-miku-yyy-blog-static.oss-cn-chengdu.aliyuncs.com/userImages/default.jpg";
        /// <summary>
        /// 用户的个人简介
        /// </summary>
        public string Introduction { get; set; } = "这个人太懒了啥也没写";
        /// <summary>
        /// 用户的粉丝数量
        /// </summary>
        public int FanNumber { get; set; }
    }
}
